﻿using MediatR;
using MyMES.Domain.W.Liststructure;
using MyMES.Error;
using System.ComponentModel.DataAnnotations;

namespace MyMES.Writer.API.Application.Commends.W.realize
{
    public class AddMaterialmanagementCommands:IRequest<APIResult<Materialmanagement>>
    {
        public int MId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string Materialnumber { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string Materialname { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public int Unit { get; set; }

        /// <summary>
        /// 物料/产品
        /// </summary>
        public int Materialproduct { get; set; }

        /// <summary>
        /// 所属分类
        /// </summary>
        public int sort { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }

        /// <summary>
        /// 批次管理
        /// </summary>
        public bool Batchmanagement { get; set; }

        /// <summary>
        /// 安全库存
        /// </summary>
        public bool Safetystock { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime STime { get; set; } = DateTime.Now;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }

        /// <summary>
        /// 出库数量
        /// </summary>
        public int InboundNumber { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string Lotnumber { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime ValidityDate { get; set; } = DateTime.Now;

        /// <summary>
        /// 是否检验
        /// </summary>
        public bool Whethertest { get; set; }

        
    }
}
